IN A NUTSHELL...
Create a spreadsheet with at least 2 columns:
- 'Concept', and
- 'Definition'
Optional: you can add also columns for 'Category' and 'Keywords' as indicated below.
Add your entries to the spreadsheet and when you're done, copy and paste it into the box below. Click on "Convert to XML" and copy the output to a text file. Import that text file to your Moodle Glossary, and your entries will be created.
Make sure you read the notes below!
The Glossary Auto-Linking Filter creates links to a glossary activity entry whenever the word or phrase is used elsewhere in course, such as in forum posts, labels or page resources.
The filter must be enabled by an administrator in
Site administration > Plugins > Filters. A teacher can then turn the filter on (or off) in the course or in a particular activity via the Filters link in the administration block.
Note: Enabling the filter does not automatically turn on linking for each glossary entry. In the glossary settings 'Automatically link glossary entries' should be set to Yes, and for each glossary entry the checkbox 'This entry should be automatically linked' should be ticked.
Disabling for specific textWithin activities and resources certain text can have the auto-linking disabled by highlighting the text in question and clicking on the 'Prevent automatic linking' button (chain with a red cross through it). Alternatively, if you are viewing the text in HTML markup mode, links can be prevented by adding
<nolink>YourText</nolink> tags around the relevant content.
Another way to force autolinking on/off in HTML markup mode is to use:
<span class="link">YourText</span> (to force a link on)
<span class="nolink">YourText</span> (to force a link off)
CSS Trick
Your Moodle theme will normally show all links in the same colour, so it's sometimes difficult to distingusigh glossary autolinks from any other type of link. You can change the colour of the autolink with this CSS...
a.glossary.autolink {background: #ffff00 !important;}
And if you really want to be clever, you can target individual glossaries - so different glossaries can have different autolink colours...
.cmid-1234 a.glossary.autolink {background: #ffff00 !important;}
.cmid-5678 a.glossary.autolink {background: #ff0000 color: #ffffff !important;}
The 'cmid-xxxx' number is the idnumber of the activity - you'll find the idnumber in the URL of the glossary,
eg. http://yourmoodle/mod/glossary/view.php?id=xxxx
Information about HTML colours